﻿@if(ViewBag.UnWarnCount != null && ViewBag.UnWarnCount as int? > 0)
{
    <div class="modal fade" id="popupMessage">
        <div class="modal-header">
            <a class="close" data-dismiss="modal">&times;</a>
            <h3>มีข้อความใหม่ @ViewBag.UnWarnCount ข้อความ</h3>
        </div>
        <div class="modal-body">
            มีข้อความใหม่ @ViewBag.UnWarnCount ข้อความ
        </div>
        <div class="modal-footer">
            <a href="#" class="btn" data-dismiss="modal">ปิด</a> 
            <a href="javascript:$('#popupMessage').modal('hide');OpenTaskList();" class="btn btn-primary">
                ไปที่กล่องคำขออนุมัติ 
            </a>
        </div>
    </div>
}

<style>
    .windowTaskList {
        width: 1040px;
        height: 600px;
        background-color: white;
    }
    .windowTaskListIframe {
        background-color: white;
        border: solid 1px gray;
        width: 100%;
        height: 600px;
    }
    .modal.fade.in {
        top: 10px;
    }
    #windowTaskList {
        margin-left: -525px;
    } 
    .modal-body {
        max-height: none;
    }
</style>
<div id="windowTaskList" class="modal windowTaskList fade" style="z-index: -10000000">
    <div class="modal-header">
        
        <h3>
            <table width="100%">
                <tr>
                    <td>
                        ข้อความถึงคุณ
                    </td>
                    <td style="width:70px;">
                        <i id="iconClickRefreshPopup" class="icon-refresh" style="cursor: pointer;"></i>
                        <a class="close" data-dismiss="modal">&times;</a>
                    </td> 
                </tr>
            </table>
            
        </h3>
    </div>
    <div class="modal-body"> 
        <div id="frameZone"></div>
    </div>
</div> 